#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

//int main()
//{
//	printf("Practice makes perfect!");
//	return 0;
//}

//int main()
//{
//	printf("The size of short is %d bytes.\n", sizeof(short));
//	printf("The size of int is %d bytes.\n", sizeof(int));
//	printf("The size of long is %d bytes.\n", sizeof(long ));
//	printf("The size of long long is %d bytes.", sizeof(long long));
//	return 0;
//}

//int main()
//{
//	int a = 1234;
//	printf("%#o ", a);
//	printf("%#X", a);
//	return 0;
//}

//int main()
//{
//	int a = 0xABCDEF;
//	printf("%15d", a);
//	return 0;
//}

//int main()
//{
//	int ret = printf("Hello world!");
//	printf("\n");
//	printf("%d", ret);
//	return 0;
//}

//int main()
//{
//	int a = 0, b = 0, c = 0;
//	scanf("%d %d %d", &a, &b, &c);
//	printf("score1=%d,score2=%d,score3=%d", a, b, c);
//	return 0;
//}

int main()
{
	int a = 0 ;
	double b = 0, c = 0,d=0;
	scanf("%d,%lf;%lf;%lf", &a, &b, &c,&d);
	b = ((int)(b * 100 + 0.5)) / 100.0;
	c = ((int)(c * 100 + 0.5)) / 100.0;
	d = ((int)(d * 100 + 0.5)) / 100.0;
	printf("The each subject score of No. %d is %.2lf,%.2lf,%.2lf.", a, b,c,d);
	return 0;
}